<?php
namespace app\model;

use think\Model;

class Ip extends Model
{
    protected $table = "ea_ip";

    /**
     * [getIpList 获取IP列表]
     * @since  2022-03-31
     * @author Dai哥
     * @param  [type]     $data [description]
     * @return [type]           [description]
     */
    public static function getIpList($data)
    {
        $list = self::whereNull('delete_time')
            ->field('ip, port, desc, type, addr, ck_time, speed')
            ->order('speed DESC')
            ->page($data['page'], 10)
            // ->group('ip')
            ->select();

        return $list;
    }
}